
package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.mybatis.annotations.Column;
import cn.nubia.admin.common.mybatis.annotations.Id;
import cn.nubia.admin.common.mybatis.annotations.Table;
import cn.nubia.admin.common.mybatis.annotations.UnColumn;

import java.io.Serializable;

/**
 * creat by gcj on 2015-09-15
 * CREATE TABLE `nb_soft_tag_map` (
 `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '关联id',
 `tag_id` int(11) DEFAULT NULL COMMENT '标签id',
 `soft_id` int(11) DEFAULT NULL COMMENT '软件id',
 `last_modify_time` int(11) DEFAULT '0' COMMENT '最后修改时间',
 `state` int(11) DEFAULT '0' COMMENT '状态：0 正常，-1 删除',
 PRIMARY KEY (`id`),
 KEY `FK_Reference_9` (`soft_id`),
 CONSTRAINT `FK_Reference_9` FOREIGN KEY (`soft_id`) REFERENCES `nb_soft` (`soft_id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=113525 DEFAULT CHARSET=utf8 COMMENT='软件标签关联表';
 *
 */
@Table(value = "nb_soft_tag_map")
public class SoftTagMap implements Serializable {

    private static final long serialVersionUID = -8244661101951482489L;

    public static final String COLUMN_SOFTID = "softId";
    public static final Integer DELETE = -1;

    @Id(value = "id")
    private Integer id;

    private Integer tagId;//标签id

    private Integer softId;//软件id

    private Integer state; //状态：0：正常 -1 失败

    private Integer lastModifyTime; //最后修改时间

    @UnColumn
    private String softName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    public Integer getSoftId() {
        return softId;
    }

    public void setSoftId(Integer softId) {
        this.softId = softId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Integer lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public String getSoftName() {
        return softName;
    }

    public void setSoftName(String softName) {
        this.softName = softName;
    }
}
